package vis.core.domain.sys.config;

import vis.core.service.sys.SysDictService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * 短信业务配置
 */
@Component
public class SmsConfig {

    @Resource
    private SysDictService dict;

    //用户每日更换绑定手机号的次数
    public String switchPhoneCount() {
        return dict.getString("sys_sms_switch_phone_count", "");
    }

    //用户每日更换绑定邮箱次数
    public String switchEmailCount() {
        return dict.getString("sys_sms_switch_email_count", "");
    }

    //用户每日收取验证码的次数
    public String sendCaptchaCount() {
        return dict.getString("sys_sms_send_captcha_count", "");
    }

    //短信验证码有效时间
    public String captchaExpireSecond() {
        return dict.getString("sys_sms_captcha_expire_second", "");
    }

    //短信验证码位数
    public String captchaLength() {
        return dict.getString("sys_sms_captcha_length", "");
    }

}
